﻿using UnityEngine;
using System.Collections;
using OhioState.Tiling;

public class GameObjTile : ITile<GameObject>
{
    public int EdgeCount
    {
        get { return 4; }
    }
    public GameObject TileData
    {
        get { return tileData; }
    }
    public GameObjTile(GameObject tileData)
    {
        this.tileData = tileData;
    }

    private GameObject tileData;
    public TileIndex2D tileSetIndex;
    public float Height { get { return tileData.renderer.bounds.extents.z * 2f; } }
    public float Width { get { return tileData.renderer.bounds.extents.x * 2f; } }

}